import request from '@/utils/request';

export async function query(): Promise<any> {
  return request('/api/users');
}

export async function queryCurrent(): Promise<any> {
  return request('/api/currentUser');
}

export async function queryNotices(): Promise<any> {
  return request('/api/notices');
}

export async function getInfo(): Promise<any> {
  return request('/getInfo', {
    method: 'GET',
  });
}

export async function getRouters(): Promise<any> {
  return request('/getRouters', {
    method: 'GET',
  });
}
